#!/bin/sh
echo 'Component Name:'
read comp
author='吴建涛(fortomorrow@163.com)'
date=`date`
#通用组件的目录
mkdir -p app/com/$comp
#js模块
mkdir -p app/com/$comp/mods
#less模块
mkdir -p app/com/$comp/style
echo "/**
 * Component: $page
 * Author: $author
 * Date: $date
 */
 define([], function(){
 });
" >> app/com/$comp/index.js
echo "app/com/$comp/index.js 创建成功"

echo "/**
 * Component: $page
 * Author: $author
 * Date: $date
 */
" >> app/com/$comp/index.less
echo "app/com/$comp/index.less 创建成功"

